package cn.jiyun.user.service.impl;

import cn.jiyun.user.dao.WareDao;
import cn.jiyun.user.pojo.Ware;
import cn.jiyun.user.service.WareService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WareServiceImpl implements WareService {
    @Autowired
    private WareDao wareDao;
    @Override
    public Ware findAll() {
        LambdaQueryWrapper<Ware> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Ware::getNum,100);
        return wareDao.selectOne(queryWrapper);
    }
}
